<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>提交作业</title>
    <link href="css/bootstrap.min.css" rel="stylesheet">
    <style>
        .span2 a{
            display: block;
            text-align: center;
            font-size: 17px;
            line-height: 50px;
        }
        a:hover{
            text-decoration: none;
            background: #999999;
        }
    </style>
</head>
<body>
<div class="container-fluid" style="margin-top: 50px;">
    <div class="row-fluid">
        <div class="span12">
            <div class="row-fluid">
                <div class="span4">
                </div>
                <div class="span4">
                    <h2 class="text-center">
                        欢迎进入学生端
                    </h2>
                </div>
                <div class="span4">
                    <a th:href="@{/}" class="btn" style="float: right">退出</a>
                </div>
            </div>
        </div>
    </div>
    <div class="row-fluid">
        <div class="span2" style="margin-top: 50px">
            <ul class="unstyled">
                <li>
                    <div class="md-end-block md-p md-focus">
                        <a th:href="@{/indexUI}" class="md-plain">课程信息</a>
                    </div>
                    <div class="md-end-block md-p">
                        <a th:href="@{/information}" class="md-plain">个人信息</a>
                    </div>
                    <div class="md-end-block md-p">
                        <a th:href="@{/courses}" class="md-plain">学生选课</a>
                    </div>
                    <div class="md-end-block md-p">
                        <a th:href="@{/submit}" class="md-plain" style="background: #999999">提交作业</a>
                    </div>
                    <div class="md-end-block md-p">
                        <a th:href="@{/achievement}" class="md-plain md-expand">个人成绩</a>
                    </div>
                </li>
            </ul>
        </div>
        <div class="span3">
        </div>
        <div class="span5"  style="margin-top: 50px">
            <table class="table" >
                <label>课程编号</label>
                <input type="text" th:value="${courseInfo.courseId}" disabled="disabled"/>
                <label>课程名称</label>
                <input type="text" th:value="${courseInfo.courseName}" disabled="disabled"/>
                <br>
                <label style="color:#ff0000;font-weight: bold" th:text="${#request.getAttribute('msgs')}"></label>
            </table>
            <form th:action="@{/refer}" method="post" enctype="multipart/form-data">
                <input type="text" th:value="${courseInfo.courseId}" name="courseId" style="display: none"/>
                <input type="file" name="word"><br><br>
                <input type="submit" value="上传" class="btn btn-primary">
            </form>
        </div>
        <div class="span2">

        </div>
    </div>
</div>
</body>
</html>